﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TTData
{
    /// <summary>
    /// Object that holds information about the cities in the game
    /// </summary>
    public static class City
    {
        public const String NO_CITY = "none";
        public const String MANNHEIM = "Mannheim";
        public const String CARLSRUHE = "Carlsruhe";
        public const String FREIBURG = "Freiburg";
        public const String BASEL = "Basel";
        public const String ZURICH = "Zurich";
        public const String SIGMARINGEN = "Sigmaringen";
        public const String ULM = "Ulm";
        public const String STUTTGART = "Stuttgart";
        public const String LINZ = "Linz";
        public const String SALZBURG = "Salzburg";
        public const String BUDWEIS = "Budweis";
        public const String PILSEN = "Pilsen";        
        public const String LODZ = "Lodz";                
        public const String INNSBRUCK = "Innsbruck";
        public const String KEMPTEN = "Kempten";
        public const String MUNCHEN = "Munchen";
        public const String PASSAU = "Passau";
        public const String AUGSBURG = "Augsburg";
        public const String INGOLSTADT = "Ingolstadt";
        public const String REGENSBURG = "Regensburg";
        public const String NURENBERG = "Nurenberg";
        public const String WURZBURG = "Wurzburg";
        
        /// <summary>
        /// Finds the region a city is in
        /// </summary>
        /// <param name="city">the city name you want to search the regionr for</param>
        /// <returns>the region the specified city is in</returns>
        public static String GetCityRegion(String city) {            
            if ((city == FREIBURG) || (city == CARLSRUHE) || (city == MANNHEIM))
                return Region.BADEN;
            else if ((city == STUTTGART) || (city == ULM))
                return Region.WURTTEMBERG;
            else if ((city == LINZ) || (city == SALZBURG))
                return Region.SALZBURG;
            else if ((city == BASEL) || (city == ZURICH))
                return Region.SCHWEIZ;
            else if (city == INNSBRUCK)
                return Region.TYROI;
            else if (city == LODZ)
                return Region.POLEN;
            else if ((city == BUDWEIS) || (city == PILSEN))
                return Region.BOHMEN;
            else if (city == SIGMARINGEN)
                return Region.HOHENZOLLERN;
            else
                return Region.BAIERN;
        }
    }
}
